package com.ruoyi.applet.appletShoppingCart.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 购物车对象 applet_shopping_cart
 * @author ruoyi
 * @date 2024-11-28
 */
public class AppletShoppingCart extends BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /** 购物车id */
    private Long id;
    
    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long wxUserId;
    
    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;
    
    /** 规格id */
    @Excel(name = "规格id")
    private Long specificationId;
    
    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;
    
    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;
    
    /** 删除标记（0正常，1删除） */
    private Integer delFlag;
    
    
    private String title;
    
    private String picturesPath;
    
    private String specificationName;
    
    private BigDecimal price;
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getWxUserId() {
        return wxUserId;
    }
    
    public void setWxUserId(Long wxUserId) {
        this.wxUserId = wxUserId;
    }
    
    public Long getProductId() {
        return productId;
    }
    
    public void setProductId(Long productId) {
        this.productId = productId;
    }
    
    public Long getSpecificationId() {
        return specificationId;
    }
    
    public void setSpecificationId(Long specificationId) {
        this.specificationId = specificationId;
    }
    
    public Long getQuantity() {
        return quantity;
    }
    
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }
    
    public Date getAddTime() {
        return addTime;
    }
    
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
    
    public Integer getDelFlag() {
        return delFlag;
    }
    
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getPicturesPath() {
        return picturesPath;
    }
    
    public void setPicturesPath(String picturesPath) {
        this.picturesPath = picturesPath;
    }
    
    public String getSpecificationName() {
        return specificationName;
    }
    
    public void setSpecificationName(String specificationName) {
        this.specificationName = specificationName;
    }
    
    public BigDecimal getPrice() {
        return price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("wxUserId", getWxUserId())
                .append("productId", getProductId())
                .append("specificationId", getSpecificationId())
                .append("quantity", getQuantity())
                .append("addTime", getAddTime())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
